public class Main {
    public static void main(String[] args) {
        IPoint point = new Component("Main");
        IPoint left = new Component("left");
        IPoint center = new Component("center");
        IPoint right = new Component("right");

        IPoint ALeaf = new Leaf("ALeaf");
        IPoint BLeaf = new Leaf("BLeaf");
        IPoint CLeaf = new Leaf("CLeaf");
        IPoint DLeaf = new Leaf("DLeaf");
        IPoint ELeaf = new Leaf("ELeaf");
        IPoint FLeaf = new Leaf("FLeaf");

        point.addChild(FLeaf);
        point.addChild(left);
        point.addChild(center);
        point.addChild(right);

        left.addChild(ALeaf);
        left.addChild(BLeaf);
        left.addChild(CLeaf);

        center.addChild(DLeaf);
        center.addChild(ELeaf);

        point.getInfo();
    }
}
